this.y = this.boundingBox.y;
let clickAction = new Clutter.ClickAction();
- clickAction.connect('clicked', this._onClicked.bind(this));
+ clickAction.connect('clicked', () => this._activate());
clickAction.connect('long-press', this._onLongPress.bind(this));
this.add_action(clickAction);
this.connect('destroy', this._onDestroy.bind(this));
return super.vfunc_key_press_event(keyEvent);
}
- _onClicked() {
- this._activate();
- }
-
_onLongPress(action, actor, state) {
// Take advantage of the Clutter policy to consider
// a long-press canceled when the pointer movement